<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopimagesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shopimages', function (Blueprint $table) {
            $table->integer('goods_id')->comment('商品id');
            $table->integer('shopimage_bh')->comment('图片个数/编号');
            $table->string('shopimage_yt')->comment('原图');
            $table->string('shopimage')->comment('缩略图');
            //$table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
       Schema::drop('shopimages');
    }
}
